#include <iostream>

using namespace std;

int get_sum(int n)
{
    int sum = 0;
    for(int i = 0; i < n; i++)
    {
        sum += i;
    }
    return sum;
}

int main()
{
    int n = 100;
    int result = get_sum(n);
    cout << "result = " << result << endl;
    return 0;
}